/*
Time :2021-04-16 11:29:22
author :selfeasy
email :selfeasy@qq.com
desc: basic datatype slice convert to  interface slice
*/

package utils

// 字符串切片转接口切片
func StrConvert(s []string) (inter []interface{}) {
	inter = make([]interface{}, len(s))
	for i, j := range s {
		inter[i] = j
	}
	return
}

// 整型切片转接口切片
func IntConvert(s []int) (inter []interface{}) {
	inter = make([]interface{}, len(s))
	for i, j := range s {
		inter[i] = j
	}
	return
}
